package be.ac.ua.codebase;

import java.io.Serializable;
import java.util.UUID;

import distrcomp.Address;

import net.jini.core.entry.Entry;


public class Bidding implements Entry, Serializable {
	public static final long serialVersionUID = 1L;
	public UUID productID;
	public CustomerInterface customer;
	public UUID bankAccountID;
	public BankInterface bank;
	public Double amount;
	public Address address;
	
	public Bidding() {
		
	}
	
	public Bidding(UUID productID) {
		this.productID = productID;
	}
	
	public Bidding(UUID productID, CustomerInterface customer, UUID bankAccountID, BankInterface bank, Double amount, Address address) {
		this.productID = productID;
		this.customer = customer;
		this.bankAccountID = bankAccountID;
		this.bank = bank;
		this.amount = amount;
		this.address = address;
	}
	
	public double getAmount() {
		return (double) this.amount;
	}

	public CustomerInterface getCustomer() {
		return this.customer;
	}

	public UUID getBankAccountID() {
		return this.bankAccountID;
	}

	public BankInterface getBank() {
		return this.bank;
	}

	public UUID getProductID() {
		return this.productID;
	}
}

